package com.example.guavaSrudy.BasicEvent.better;

import com.example.guavaSrudy.BasicEvent.deadEvents.DeadEventSubscriber;
import com.example.guavaSrudy.BasicEvent.simple.TradeAccount;
import com.example.guavaSrudy.BasicEvent.simple.TradeAccountEvent;
import com.example.guavaSrudy.BasicEvent.simple.TradeType;
import com.google.common.eventbus.DeadEvent;
import com.google.common.eventbus.EventBus;

public class MainClass {

    public static void main(String[] args) {
        EventBus eventBus = new EventBus();
        DeadEventSubscriber deadEventSubscriber = new DeadEventSubscriber(eventBus);
        BuySellTradeExecutor buySellTradeExecutor = new BuySellTradeExecutor(eventBus);
        TradeAccount tradeAccount = new TradeAccount();
        tradeAccount.setOwner("买白酒股票10000股");
//        TradeBuyAuditor tradeBuyAuditor = new TradeBuyAuditor(eventBus);
//        TradeSellAuditor tradeSellAuditor = new TradeSellAuditor(eventBus);
        AllTradesAuditor allTradesAuditor = new AllTradesAuditor(eventBus);
        buySellTradeExecutor.executeTrade(tradeAccount,100000, TradeType.SELL);

    }
}
